﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TeamDev.JQuery.Internals
{
  public class jqBasicSelector
  {
    public string Filter { get; private set; }
    internal jqBasicSelector(string value)
    {
      Filter = value;
    }

    public static jqMultiSelector operator +(jqBasicSelector left, jqBasicSelector right)
    {
      return new jqMultiSelector(string.Format("{0},{1}", left.Filter, right.Filter));
    }

    public static jqMultiSelector operator &(jqBasicSelector left, jqBasicSelector right)
    {
      return left + right;
    }

    public static jqMultiSelector operator |(jqBasicSelector left, jqBasicSelector right)
    {
      return left + right;
    }
  }
}

